import request from '@/utils/request'

// 查询场馆列表
export function listVenueReservation(query) {
  return request({
    url: '/venueReservation/venueReservation/list',
    method: 'get',
    params: query
  })
}

// 查询场馆详细
export function getVenueReservation(venueId) {
  return request({
    url: '/venueReservation/venueReservation/' + venueId,
    method: 'get'
  })
}

// 新增场馆
export function addVenueReservation(data) {
  return request({
    url: '/venueReservation/venueReservation',
    method: 'post',
    data: data
  })
}

// 修改场馆
export function updateVenueReservation(data) {
  return request({
    url: '/venueReservation/venueReservation',
    method: 'put',
    data: data
  })
}

// 删除场馆
export function delVenueReservation(venueId) {
  return request({
    url: '/venueReservation/venueReservation/' + venueId,
    method: 'delete'
  })
}
